<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head>
<meta http-equiv="content-language" content="de" />
<meta http-equiv="content-type" content="text/html; charset=utf-8;" />
<title>railbrowser</title>
<link rel="stylesheet" type="text/css" href="css/addobject.css" media="all" />
<script type="text/javascript">
	function check_form_data () {
		if( document.getElementsByName("a_name")[0].value.length < 1 ){
			alert("Sie müssen dem Objekt einen Namen geben.");
			document.getElementsByName("a_name")[0].focus();
			return false;
		}

		return true;
	}
</script>
</head>

<body>

<form action="addobject.php" method="POST" onsubmit="return check_form_data();">
<label><span>Name</span><input type="text" name="a_name" /></label>
<label><span>Typ</span><select name="rail_type">
<option>rail_object</option>
<option>rail_user</option>
<option>rail_group</option>
<option>rail_container</option>
<option>rail_page</option>
<option>rail_document</option>
</select></label>
<button type="submit">Hinzufügen</button>
</form>
<script type="text/javascript">
	document.getElementsByName("a_name")[0].focus();
</script>
</body>
</html>